body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
  }
  
  .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    height: 100%;
    position: relative;
  }
  
  .header {
    background-color: #f1c40f;
    padding: 20px;
    text-align: center;
  }
  
  .content {
    margin-bottom: 20px;
  }
  
  .sticky-top {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0; /* The element will stick to the top of the viewport */
    background-color: #3498db;
    color: white;
    padding: 10px;
    text-align: center;
  }
  
  .sticky-bottom {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    bottom: 0; /* The element will stick to the bottom of the viewport */
    background-color: #e74c3c;
    color: white;
    padding: 10px;
    text-align: center;
  }